using System;
using System.Collections.Generic;
using Crusades.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Crusades_UT.Helpers{
  [TestClass]
  public class Vector_UT{
    [TestMethod]
    public void EqualityWorks(){
      var vector = new Vector(3,4);
      var add = vector + new Vector(1, 2);
      Assert.AreEqual(add,new Vector(4,6));
      
      Assert.AreNotEqual(vector,null);
    }

    [TestMethod]
    public void ScalarMultiplicationWorks(){
      var vector = new Vector(3, 4);
      var m = vector/2;
      Assert.AreEqual(new Vector(1.5,2),m);

      var n = vector*2;
      Assert.AreEqual(new Vector(6,8),n);
    }
  }
}